<?php 
	include_once 'common'.DIRECTORY_SEPARATOR.'header.php';
	include_once 'classes'.DIRECTORY_SEPARATOR.'clsAdminController.php';
	include('db-connection'.DIRECTORY_SEPARATOR.'conn.php');
	
	$objAdminController = new clsAdminController();
	$videoID = $_REQUEST["v"];
	$arrVideoDetails=array();
    $arrVideoDetails  =$objAdminController->getVideoDetailsByID($videoID);
    $videoId = $arrVideoDetails["int_video_id"];
    $videoTitle = $arrVideoDetails["txt_video_title"];
    $videoThumbPath = "..".DIRECTORY_SEPARATOR.$arrVideoDetails["txt_thumb_video_path"];
    $videoPath = "..".DIRECTORY_SEPARATOR.$arrVideoDetails["txt_video_path"];
    if(!file_exists($videoThumbPath))
    	$videoThumbPath = "..".DIRECTORY_SEPARATOR."videos".DIRECTORY_SEPARATOR."Lake.jpg";
    $videoUploaderUserId = $arrVideoDetails['int_user_id'];
    $videoUploaderName = $arrVideoDetails["txt_first_name"]."&nbsp;".$arrVideoDetails["txt_last_name"];
    $videoDescription = $arrVideoDetails["txt_video_desc"];
    $categoryName = $arrVideoDetails["category_name"];
    $keyWordsStr = $arrVideoDetails["txt_keywords"];
    $keyWordsArr = array();
    $keyWordsArr = explode(",",$keyWordsStr);
?>
	<script type="text/javascript" src="flowplayer-3.2.8.min.js"></script>
    </div>
  </div>
  <div class="clear"></div>
  
  <div class="content_wrapper">
  <table width="1000" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="593" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      	<tr>
        	<td>&nbsp;</td>
    	</tr>
      <tr>
        <td valign="top">  
        	<!--Video Player Container.  This is where the player embed code goes-->
			<a  
			 href="http://localhost/ideasharing-1/videos/1001/Worst_goal_keeper.flv"
			 style="display:block;width:520px;height:330px"  
			 id="player"> 
		</a> 
		
		<!-- this will install flowplayer inside previous A- tag. -->
		<script>
			flowplayer("player", "flowplayer-3.2.9.swf");
		</script>
  <!--End Video Player Container-->
        </td>
    </tr>
  </table>      </td>
    <td width="407" valign="top" bgcolor="#EEEFF2"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td valign="top"><div class="about">
				<div style="padding-left: 8px;" id="viewCounter">
				<span style="font-size: 14px; font-weight: bold;"><br />
				<a id="viewsHelp"><span class="notranslate nostyle">28,692</span> Views</a></span>		  </div>
				
				
		  <div class="side_top">
		  <!-- Video Description -->
		  <?php echo $videoDescription; ?>
		  <!-- Video Description Ends -->
		  </div>
				<div class="subscribe contentPod">
	<div>
		<img src="images/btn_01.gif" />	</div>
	<div class="side_top">
		<b>New talks are released daily. Be the first to know!</b>
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
  
  <tr>
    <td width="41%">	<input type="text" data-default-value="Enter email for newsletter" class="formTextInput email" value="" id="newsletterSignup_email_address" name="newsletterSignup[email_address]"></td>
    <td width="59%"><input type="image" src="images/blank.gif" class="subscribe hover" value="submit" name="submit"></td>
  </tr>
  
</table>
	</div>
</div>

				<div class="contentPod">
					<div>
						<img src="images/btn_02.gif" />	
					</div>
					<!-- Category & SubCategory Area -->
					<div class="side_style2_hd_sub">
						<dl>
							<dt>Related Categories</dt>
							<dd class="clearfix">
								<ul>
									<li><a href="/themes/a_greener_future.html"><?php echo $categoryName; ?></a></li>
								</ul>
							</dd>

							<dt>Related Sub Keywords</dt>
								<dd>
									<ul>
										<?php foreach ($keyWordsArr as $keys) 
										{
										?>
										<li><a href=""><?php echo ucwords($keys); ?></a></li>
										
										<?php 
										}
										?>
									</ul>
									
								</dd>
						</dl>
					</div>
					<!-- Category & SubCategory Area Ends-->
				</div>
				<div style="margin: 10px 0px;"></div>

				<!-- Creative Commons  -->
    </div></td>
      </tr>
    </table></td>
  </tr>
  
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
</table>
  </div>
  <?php 
  include_once 'common/footer.php';
  ?>
